package com.skyolder.milkbee.service.dto;

import java.io.Serializable;
import java.util.Objects;


/**
 * A DTO for the Winner entity.
 */
public class WinnerDTO implements Serializable {

    private Long id;

    private Long sweepstakeId;

    private Long awardId;

    private Long userId;

    private Long leaguerId;

    private String name;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getSweepstakeId() {
        return sweepstakeId;
    }

    public void setSweepstakeId(Long sweepstakeId) {
        this.sweepstakeId = sweepstakeId;
    }
    public Long getAwardId() {
        return awardId;
    }

    public void setAwardId(Long awardId) {
        this.awardId = awardId;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Long getLeaguerId() {
        return leaguerId;
    }

    public void setLeaguerId(Long leaguerId) {
        this.leaguerId = leaguerId;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        WinnerDTO winnerDTO = (WinnerDTO) o;

        if ( ! Objects.equals(id, winnerDTO.id)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }

    @Override
    public String toString() {
        return "WinnerDTO{" +
            "id=" + id +
            ", sweepstakeId='" + sweepstakeId + "'" +
            ", awardId='" + awardId + "'" +
            ", userId='" + userId + "'" +
            ", leaguerId='" + leaguerId + "'" +
            ", name='" + name + "'" +
            '}';
    }
}
